package com.example.markingsystem.service;

import com.example.markingsystem.bean.openidrecord;
import com.example.markingsystem.bean.user;
import com.example.markingsystem.mapper.LoginMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class Loginservice {
    @Resource
    public LoginMapper loginMapper;
    public Boolean idexit(String idcode){
        return loginMapper.idexit(idcode);
    }

    public user codegetalluse(String idcode){
        return loginMapper.codegetalluse(idcode);
    }

    public Boolean existsbyopenid(String openid){
        return loginMapper.existsbyopenid(openid);
    }

    public String getidcodeByopenid(String openid){
        return loginMapper.getidcodeByopenid(openid);
    }

    public int insertOpenidRecord(openidrecord record){
        return loginMapper.insertOpenidRecord(record);
    }
}
